package com.zerdoor.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2015/1/22.
 */
public interface RaceDao {
    /**
     * 竞赛活动列表
     * @param map
     * @return
     */
    public List<Map<String, Object>> getRaceInfo(Map<String, Object> map);

    /**
     * 获取竞赛活动技能
     * @return
     */
    public List<Map<String, Object>> getRaceSkill();

    /**
     * 竞赛活动审核
     * @param raceId 竞赛活动编号
     * @throws Exception
     */
    public void updateRaceProgress(int raceId) throws Exception;

    /**
     * 竞赛活动推荐
     * @param raceId 竞赛活动编号
     * @throws Exception
     */
    public void updateRaceRecom(int raceId) throws Exception;

    /**
     * 取消竞赛推荐
     * @param raceId 竞赛活动编号
     * @throws Exception
     */
    public void updateRaceCancelRecom(int raceId) throws Exception;
}
